package com.supermap.qdsearch.widget;

import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.widget.ImageView;

import com.supermap.qdsearch.R;


/**
 * Created by XueQing Wang on 2018/5/24.
 */

public class CustomProgressBar extends Dialog {


    public CustomProgressBar(Context context) {
        super(context, R.style.MyDialog);
        super.setContentView(R.layout.dialog_loading);
        setCanceledOnTouchOutside(false);
        ImageView ivLoad = (ImageView)findViewById(R.id.iv_load);
        AnimationDrawable drawable = (AnimationDrawable) ivLoad.getDrawable();
        drawable.start();
    }
}
